﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HZ.Supervise.Model.Query
{
    public class Prescription : IQuery
    {

    
        /// <summary>
        /// 
        /// </summary>
        public string PrescriptionId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? PAreaId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PAreaname { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PHospitalId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PHospitalName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PatientName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PHisPId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PdoctorName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? PtotalAmount { get; set; }
        /// <summary>
        /// 处方单基药总金额
        /// </summary>
        public decimal? PEssentialDrugsAmount { get; set; }
        /// <summary>
        /// 补贴总金额
        /// </summary>
        public decimal? PSbsidyAmount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? PAge { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool? PSex { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public System.DateTime? Paddtime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? PisSubsidy { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public System.DateTime? PSubsidyTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PSubsidyUserid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PsympToms { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrescriptionDetailID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Expr1 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ProcureCatalogID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PinyinCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PgoodsName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PmedicineModelname { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Poutlookc { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Pmaterial { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Punit { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? Pfactor { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? PsortSource { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Pcompanyid_sc { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Pcompanyname_sc { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? PimitPrice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? Pbidprice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? Price { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? Pcount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? Pamount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Premark { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public System.DateTime? Expr2 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string BatchRecordID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public System.DateTime? PeriodTime { get; set; }

        /// <summary>
        /// 配送企业名称(冗余)
        /// </summary>
        public string CompanyPsName { get; set; }

        /// <summary>
        /// 转换比(冗余)
        /// </summary>
        public int? Factor { get; set; }
        /// <summary>
        /// 医院内部药品ID(冗余)
        /// </summary>
        public string HISDrugID { get; set; }
        /// <summary>
        /// 转换比
        /// </summary>
        public int? TempColumn { get; set; }
        /// <summary>
        /// 按比例计算的补贴金额-处方单明细应补贴金额
        /// </summary>
        public decimal? PSubsidiesAmount { get; set; }

        /// <summary>
        /// 按比例计算的补贴金额-处方单应补贴金额
        /// </summary>
        public decimal? PSubsidiesAmount_Order { get; set; }
        /// <summary>
        /// 排序字段【格式如：UserID ASC,UserName DESC, IsAdmin ASC】
        /// </summary>
        public string SortFields { get; set; }

        /// <summary>
        /// 自定义查询字段[格式: UserID = '1234' AND Name = 'Zeus2' AND ID NOT (SELECT ID FROM XX)]
        /// </summary>
        public string Append { get; set; }
    }
}
